package user;

import book.Book;
import book.Booklist;
import operation.*;

/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: XMQ
 * Date: 2022-05-18
 * Time: 10:26
 */
public abstract class User {
    protected String name;//用户名
    public IOperation[] iOperations;//此时没有分配内存大小
    public User(String name) {
        this.name = name;

    }
    public abstract int menu();

    public void doOperation(int choice, Booklist booklist){
        this.iOperations[choice].work(booklist);
    }
}
